package com.sxj.PDMS.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxj.PDMS.model.dto.student.StudentRegisterRequest;
import com.sxj.PDMS.model.entity.Student;
import com.sxj.PDMS.model.vo.StudentLoginVO;
import com.sxj.PDMS.model.vo.StudentTimesVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author sunxi
* @description 针对表【student(学生信息列表)】的数据库操作Service
* @createDate 2024-06-06 17:29:35
*/
public interface StudentService extends IService<Student> {

    /**
     * 用户注册
     *
     * @param studentRegisterRequest   学生
     * @return 学生 名字
     */
    String studentRegister(StudentRegisterRequest studentRegisterRequest);
    /**
     * 用户登录
     *
     * @param studentNumber  学号
     * @param password 密码
     * @param request
     * @return 脱敏后的用户信息
     */
    StudentLoginVO login(String studentNumber, String password, HttpServletRequest request);

    StudentLoginVO getLoginStudent();

    StudentTimesVO selectStudentTimes(String studentNumber);
}
